/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Basicas;

import java.io.IOException;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;

/**
 *
 * @author Marcio
 */
public class Bode {

  
    Sprite spriteBode;
    public int[] bodeSeqFrente = {72, 73, 74, 73};
    public int bodeDelay = 50;
    public int[] bodeSeqCostas = {48, 49, 50, 49};
    public int[] bodeSeqEsquerda = {84, 85, 86, 85};
    public int[] bodeSeqDireita = {60, 61, 62, 61};

    public int[] getBodeSeqCostas() {
        return bodeSeqCostas;
    }

    public int[] getBodeSeqDireita() {
        return bodeSeqDireita;
    }

    public int getBodeDelay() {
        return bodeDelay;
    }

    public int[] getBodeSeqEsquerda() {
        return bodeSeqEsquerda;
    }

    public int[] getBodeSeqFrente() {
        return bodeSeqFrente;
    }

    public Sprite getSpriteBode() {
        return spriteBode;
    }

    public void setSpriteBode(Sprite spriteBode) {
        this.spriteBode = spriteBode;
    }

    public Bode() throws IOException {
        Image img = Image.createImage("/imagens/bode1.png");
        this.spriteBode = new Sprite(img, 24, 32);
        this.spriteBode.setFrameSequence(bodeSeqFrente);
        this.spriteBode.setVisible(true);
        this.spriteBode.setPosition(55, 100);

        //define the reference in the midle of sprites frame so that transformations work well
        this.spriteBode.defineReferencePixel(8, 8);
    }
}
